import { createStore } from 'vuex'

export default createStore({
  state: {
      pages: [],
  },
  mutations: {
    addPage(state, page) {
        if(!state.pages.includes(page)) {
            state.pages.push(page)
        }
      },
      resetPages (state) {
        state.pages = []
      }
  },
  actions: {
  },
  modules: {
  }
})
